
import { getTableHeight } from "@/utils/table";

// 表格组件 传参
export default {
  data() {
    return {

      dataGrid: {
        height: getTableHeight("searchForm", "dataGrid", this, 210),
        visible: false,
        loading: false,
        columns: [
          {
            label: "日期",
            prop: "date",
            align: "center",
            width: 120
          },
          {
            label: "客户",
            prop: "userName",
            align: "center"
          },
          {
            label: "品名",
            prop: "name",
            align: "center"
          },
          {
            label: "素材类型",
            prop: "incomingModel",
            align: "center"
          },
          {
            label: "型号",
            prop: "Model",
            align: "center"
          },
          {
            label: "投入数",
            prop: "totalAmount",
            align: "center"
          },
          {
            label: "良品数",
            prop: "goodAmount",
            align: "center"
          },
          {
            label: "良率",
            prop: "goodRate",
            align: "center"
          },
          {
            label: "不良率",
            prop: "ngRate",
            align: "center"
          },
          {
            label: "不良总数",
            prop: "ngTotalAmount",
            align: "center"
          }
        ],
        oldColums: [
          {
            label: "日期",
            prop: "date",
            align: "center",
            width: 120
          },
          {
            label: "客户",
            prop: "userName",
            align: "center"
          },
          {
            label: "品名",
            prop: "name",
            align: "center"
          },
          {
            label: "素材类型",
            prop: "incomingModel",
            align: "center"
          },
          {
            label: "型号",
            prop: "Model",
            align: "center"
          },
          {
            label: "投入数",
            prop: "totalAmount",
            align: "center"
          },
          {
            label: "良品数",
            prop: "goodAmount",
            align: "center"
          },
          {
            label: "良率",
            prop: "goodRate",
            align: "center"
          },
          {
            label: "不良率",
            prop: "ngRate",
            align: "center"
          },
          {
            label: "不良总数",
            prop: "ngTotalAmount",
            align: "center"
          }
        ],
        data: [],
        pagination: {
          hidden: 2,
          pageNum: 1,
          pageSizes: [50, 100, 150],
          pageSize: 50,
          total: 0,
          pageCount: 0
        }
      }
    };
  },
  methods: {

  }

};
